<?php
class model_manageModel extends baseModel
{
    // 模型列表
    public function model_list($where=null)
    {
        return $this->model->table('model')->order('mid asc')->where($where)->select();
    }

    //模型信息
    public function info($mid)
    {
        return $this->model->table('model')->where('mid='.$mid)->find();
    }

    
    //查找模型信息
    public function search($model)
    {
        return $this->model->table('model')->where('model="'.$model.'"')->find();
    }


    //模型修改
    public function setting_save($data)
    {
        $condition['mid']=intval($data['mid']);
        return $this->model->table('model')->data($data)->where($condition)->update(); 
    }

}

?>